<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>主界面</title>
</head>
<body>
    <h1>主页面</h1>
    <h2 th:text="|Hello ${username}|"></h2>
    <span th:each="auth:${authorities}">
        [[${auth}]]
    </span>
    <p><a href="/admin/admin">访问管理员页面</a> </p>
    <p><a href="/user/user">访问用户页面</a> </p>

    <button >管理员</button>
    <form action="/logout" method="post">
        <input type="submit" value="注销">
    </form>
</body>
</html>